<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>

</head>

<body>
  <div id="app">
    <ul>
      <!-- 使用v-for进行列表渲染 数组 -->
      <li v-for="(item,index) in Animal" :key="index">{{item}}-{{index+1}}</li>
    </ul>
    <table>
      <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>年龄</th>
      </tr>
      <tr v-for="(item,index) in stus" :key="item.id">
        <td>{{item.id}}-{{index+1}}</td>
        <td>{{item.name}}-{{index+1}}</td>
        <td>{{item.age}}-{{index+1}}</td>
      </tr>
    </table>
  </div>
  <script>
    new Vue({
      el: "#app",
      data: {
        Animal: ['兔子', '小老虎', '狮子'],
        stus: [
          {
            id: 1,
            name: "张三",
            age: 12
          }, {
            id: 2,
            name: "李四",
            age: 13
          }, {
            id: 3,
            name: "王五",
            age: 14
          }
        ]
      },
      methods: {

      }
    })
  </script>
</body>

</html>